 
 <form method='post'>
  <div class='hint'>
 <?php
 
  if ($dt1==false)
 $dt1=$udata[0][0]->dtm;
  
 ?>
  
Период с <input id="txtDateB" name="txtDateB" type="text" value="<?=date('Y-m-d H:i:s', $dt1) ?>"> по   <input id="txtDateE" name="txtDateE" type="text"  value="<?=date('Y-m-d H:i:s', $dt2) ?>"> 
Масштабирование <select name='DivideType'>
 <option value='y' <?=($DivT=='y')?'selected':'' ?>>Годы</option>
<option value='k' <?=($DivT=='k')?'selected':'' ?>>Кварталы</option> 
<option value='m' <?=($DivT=='m')?'selected':'' ?>>Месяца</option>
<option value='w' <?=($DivT=='w')?'selected':'' ?>>Недели</option>
<option value='d' <?=($DivT=='d')?'selected':'' ?>>Дни</option>
<option value='h' <?=($DivT=='h')?'selected':'' ?>>Часы</option>
<option value='30min' <?=($DivT=='30min')?'selected':'' ?>>30 минут</option>
<option value='15min' <?=($DivT=='15min')?'selected':'' ?>>15 минут</option>
<option value='5min' <?=($DivT=='5min')?'selected':'' ?>>5 минут</option>
</select>

<?

	if ($ulist)
	{
	//var_dump($suser_list);
	?>
	Детализация:
	<div style='display:inline-table;'>
	 <select id='det' name='det' class="arc90_multiselect">
	 <option value='all' <?=(!$suser_list)?'selected':''?> >Все</option>
	<?
	  foreach($ulist as $det)
	  {
	   ?>
	   <option value='<?=$det->det ?>'><?=$det->det ?></option>
	   <?
	  }
	  ?>
	 </select>
	 </div>
	<?
	}

?>

<input type='submit' value='ok'>

  </div>
  </form>
 

 